<?php
	class Event {
		
		private $observers = array();
		
		public function fire(){
			foreach ($this->observers as $Observer){
				call_user_func($Observer);
			}
		}
		
		public function addObserver($Observer,$method){
			$this->observers[] = array(&$Observer,$method);
		}
	}
?>
